package main

import (
	"net/http"
	"cn.hughie/learngo/filelist/handler"
	"cn.hughie/learngo/filelist/wrap"
)

func main() {
	http.HandleFunc("/", wrap.ErrWrapper(handler.FileLister))
	if err := http.ListenAndServe(":8888", nil); err != nil {
		panic(err)
	}
}
